package chapter02;

public class Fzzf {
    public static void main(String[] args) {
        char[] s = {'序', '顺', '符', '字', '组', '数', '倒', '颠'};
            int begin = 0;
            int end = s.length - 1;
            char temp;
            while (end > begin) {
                temp = s[begin];
                s[begin] = s[end];
                s[end] = temp;
                end--;
                begin++;
            }
            System.out.println(s);

    }
}
